if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ieversion <= 6) {
  alert("Hi! It looks like you're using Internet Explorer 6 or lower, this is very bad :( \nand " + document.domain + " no longer supports it. We're sending you to a page \nto help you install a better browser. \n\nPlease come back to " + document.domain + " on a better browser!");
  
  window.location="http://abetterbrowser.org";
  
  }
}